package com.itlong.cloud.POJO.VO.property;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <desc>
 *      访客通行记录VO
 * </desc>
 *
 * @createDate 2018/06/27
 */

@Data
@NoArgsConstructor
public class PropertyVisitorPassRecordGetVO {

    //设备名称
    private String deviceName;

    //云对讲类型  31-门口机  32-围墙机
    private Integer deviceType;

    //访客姓名
    private String visitorName;

    //访客通行方式
    private Integer visitorPassType;

    //通行时间
    private String passTime;

    private String deviceTypeName;

    private String visitorPassTypeName;

    //访客手机号
    private String visitorPhone;

    //人脸头像地址
    private String facePicUrl;

    private String projectName;

    public String getDeviceTypeName() {
        if (deviceType == null) {
            return "";
        }else{
            if(deviceType==31){
                return "云对讲（门口机）";
            }
            if(deviceType==32){
                return "云对讲（围墙机）";
            }
            if(deviceType==12){
                return "云电梯";
            }
            if(deviceType==2){
                return "门禁";
            }
        }
        return "";
    }

    public String getVisitorPassTypeName() {
        if (visitorPassType == null) {
            return "";
        }else{
            if(visitorPassType==1){
                return "密码开门";
            }
            if(visitorPassType==2){
                return "二维码开门";
            }
        }
        return "";
    }

}